package model

type RoleListInput struct {
	PageSizeReq
}

type RoleFormInput struct {
	RoleName   string `json:"role_name" v:"required|max-length:30" dc:"角色名称"`
	RoleSlug   string `json:"role_slug" v:"max-length:30" d:"" dc:"角色别名"`
	GuardName  string `json:"guard_name" v:"max-length:30" d:"" dc:"角色守卫"`
	RoleRemark string `json:"role_remark" v:"max-length:120" d:"" dc:"角色备注"`
	RoleStatus uint   `json:"role_status" v:"integer|in:0,1" d:"0" dc:"角色状态(0隐藏,1显示)"`
}

type RoleItem struct {
	Id         uint64 `json:"id"`
	RoleName   string `json:"role_name"`
	RoleSlug   string `json:"role_slug"`
	GuardName  string `json:"guard_name"`
	RoleRemark string `json:"role_remark"`
	RoleStatus uint   `json:"role_status"`
}

type RoleAllItem struct {
	Id       uint64 `json:"id"`
	RoleName string `json:"role_name"`
	RoleSlug string `json:"role_slug"`
}
